<!-- https://developer.wordpress.org/reference/functions/get_search_form/#user-contributed-notes -->

<form role="search" method="get" action="<?php echo esc_url( home_url('/') ); ?>">
  <div class="input-group">
    <input type="search" class="form-control" placeholder="Pesquisa" value="<?php echo get_search_query(); ?>" name="s" title="Pesquisa" />
    <span class="input-group-btn">
      <input type="submit" id="searchsubmit" class="btn btn-default" value="<?php echo esc_attr_x( 'Search', 'submit button' ); ?>" />
    </span>
  </div>
</form>
